import React, { PureComponent } from 'react';
import Carousel from "react-native-reanimated-carousel";

class CarouselComponent extends PureComponent {
    render() {
        const { data, renderItem, ...rest } = this.props;
        return (
            <Carousel
                data={data}
                renderItem={renderItem}
                {...rest}
            />
        );
    }
}

export default CarouselComponent;
